package jobs

import (
	"gin-extend-demo/daos/account_dao"
	"log"

	"gitee.com/fkil555/gin-extend/gcontext"
	jsoniter "github.com/json-iterator/go"
)

func TestDemo(ctx *gcontext.GEContext) {
	log.Println("script run!")
}

func Select(ctx *gcontext.GEContext) {
	rows, _ := account_dao.Select(ctx)
	log.Println(jsoniter.MarshalToString(rows))
}

func Update(ctx *gcontext.GEContext) {
	isSucc, _ := account_dao.Update(ctx)
	log.Println(isSucc)
	Select(ctx)
}
